{config_load file="lang/$language/lang_$language.conf" section="product_info"}
{config_load file="lang/$language/lang_$language.conf" section="checkout_confirmation"}
{config_load file="lang/$language/lang_$language.conf" section="checkout_paypal"}
<h1>{#heading_checkout#}</h1>
{if $error!=''}<p>{$error}</p>{/if}
{if $IP_LOG=='true'}
	<table class="w100p">
		<tr>
			<td class="fwb">{#text_ip#}</td>
			<td class="inputRequirement fwb">{$CUSTOMERS_IP}</td>
		</tr>
	</table>
{/if}
<table class="w100p">
	<tr>
		<td class="w60p va-t">
			<span class="fwb db">{#title_payment_address#}:</span>
			<p>{$ADDRESS_PAYMENT_LABEL}</p>
			{$BUTTON_PAYMENT_ADDRESS}
		</td>
		<td class="va-t">
			<span class="fwb db">{#title_shipping_address#}:</span>
			<p>{$ADDRESS_SHIPPING_LABEL}</p>
			{$BUTTON_SHIPPING_ADDRESS}
		</td>
	</tr>
</table><br />

<h3>{#title_shipping#}</h3>
{$FORM_SHIPPING_ACTION}
	<p>{#text_shipping#}</p>
	<p>{$SHIPPING_BLOCK}</p>
	{$PAYMENT_HIDDEN}
{$FORM_END}

{if $PAYMENT_INFORMATION!=''}
	<h3>{#text_payment_info#}</h3>
	{foreach name=aussen item=payment from=$payment_info}
		<p><b>{$payment.TITLE}</b> {$payment.FIELD}</p><br />
	{/foreach}
{/if}
<br />

<h3>{#title_comments#}</h3>
{$CHECKOUT_FORM}
<p class="checkoutcomment">{$COMMENTS}</p><br />

<h3>{#title_agb#}</h3>
<p class="checkoutagb">{$AGB}</p>
<p>{$AGB_checkbox} <span class="fwb">{#text_accept_agb#}</span></p><br />

<p>{$ADR_checkbox} <span class="fwb">{#text_accept_adr#}</span></p><br /><br />

<h3>{#text_products#}</h3>
<table class="w100p">
	<tr class="order_details_head">
		<td>&nbsp;</td>
		<td class="w40p fwb">{#text_article#}</td>
		<td class="w16p ar fwb">{#text_single#}</td>
		<td class="w15p ac fwb">{#text_qty#}</td>
		<td class="w16p ar fwb">{#text_total#}</td>
	</tr>
	{foreach name=aussen item=data from=$products_data}
		<tr class="shopping_cart_products">
			<td>
				{if $data.image}<img src="{$data.image}" alt="{$data.name}" />{/if}
			</td>
 			<td>
 				<span class="fwb">{$data.name}</span> {$data.model}
 				{foreach key=a_data item=attrib_data from=$data.attributes}
 					{$attrib_data.option}: {$attrib_data.value}
 				{/foreach}
 			</td>
 			<td class="w22p ar">{$data.price_formated}</td>
 			<td class="w20p ac">{$data.qty}x</td>
 			<td class="w22p ar">{$data.final_price_formated}</td>
 		</tr>
	{/foreach}
</table>
<div class="order_details_totalcost">
	<table class="w100p" class="ar">
		{foreach name=total_data item=total from=$total_block}
			<tr>
				<td class="ar">{$total.title}</td>
				<td class="ar">{$total.text}</td>
			</tr>
		{/foreach}
	</table>
</div>
<p class="ar">{if $MODULE_BUTTONS!=''} {$MODULE_BUTTONS}<br />{/if} {$CHECKOUT_BUTTON}</p>
{$FORM_END}
{if $REVOCATION}
	<p>
		<span class="fwb db">{$REVOCATION_TITLE}</span>
		{$REVOCATION}
	</p>
{/if}